import request from '@/utils/request'

// 查询月薪列表
export function listMonthsalary(query) {
  return request({
    url: '/business/monthsalary/list',
    method: 'post',
    params: query
  })
}

// 查询月薪详细
export function getMonthsalary(id) {
  return request({
    url: '/business/monthsalary/' + id,
    method: 'get'
  })
}

// 新增月薪
export function addMonthsalary(data) {
  return request({
    url: '/business/monthsalary',
    method: 'post',
    data: data
  })
}

// 修改月薪
export function updateMonthsalary(data) {
  return request({
    url: '/business/monthsalary',
    method: 'put',
    data: data
  })
}

// 删除月薪
export function culUserSalary(data) {
  return request({
    url: '/business/monthsalary/culUserSalary',
    method: 'post',
    data: data
  })
}

// 删除月薪
export function culDeptSalary(data) {
  return request({
    url: '/business/monthsalary/culDeptSalary',
    method: 'post',
    data: data
  })
}

// 删除月薪
export function delMonthsalary(id) {
  return request({
    url: '/business/monthsalary/' + id,
    method: 'delete'
  })
}

// 导出月薪
export function exportMonthsalary(query) {
  return request({
    url: '/business/monthsalary/export',
    method: 'post',
    params: query
  })
}
